package sqlmanager;

public class Authentification {
	public static final int ODBC = 1;
	public static final int JDBC = 2;
	private static final String[] types = { "ODBC", "JDBC" };

	public String source = "";
	public String user = "anonymous";
	public String password = "anonymous@anonymous.org";
	public int port = 3306;
	public int type = Authentification.ODBC;

	public String toString() {
		StringBuffer buf = new StringBuffer();
		buf.append(user + ":" + password + "@" + source + ":" + port + " [" + types[type - 1] + "]");
		return buf.toString();
	}
}
